package com.biz.primus.app.erpbridge.stream;

import com.biz.primus.model.oms.stream.OrderStateChannel;
import com.biz.primus.model.oms.stream.ReturnStateChannel;
import org.springframework.cloud.stream.annotation.Input;
import org.springframework.messaging.SubscribableChannel;

/**
 * @author yanweijin
 * @date 2017/11/26
 */


public interface OmsStateSink extends OrderStateChannel, ReturnStateChannel {

	/**
	 * 订单业务状态变化
	 * @return
	 */
	@Input(ORDER_STATE_CHANGE)
	SubscribableChannel orderStateChangeInput();
	/**
	 * 退单业务状态变化
	 * @return
	 */
	@Input(RETURN_STATE_CHANGE)
	SubscribableChannel returnStateChangeInput();

}
